package com.jwdf.uda.http.action;

import android.content.Context;
import com.jwdf.uda.bean.PbBean;
import com.jwdf.uda.http.AHttpService;
import com.jwdf.uda.http.ApiService;
import retrofit2.Call;

/**
 * Created by Administrator on 2016/10/8.
 */
public class GetCoverAction extends AHttpService<PbBean.PbResSystemGetCoverList> {

    /**
     * 获取封面列表
     * @param context
     * @return
     */
    public static GetCoverAction newInstance(Context context){
        return new GetCoverAction(context);
    }
    private GetCoverAction(Context context) {
        super(context);

    }
    @Override
    protected Call newRetrofitCall(ApiService apiService, PbBean.PbBaseClientInfo.Builder baseBuilder) {
        PbBean.PbReqSystemGetCoverList.Builder builder = PbBean.PbReqSystemGetCoverList.newBuilder();
        builder.setBaseClientInfo(baseBuilder);
        return apiService.getCoverList(builder.build());
    }
}
